home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1995-08-29 | 8.2 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
1%
| dexvert
| Combustion 2 Particle Library (other/combustion2ParticleLibrary)
| ext
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
| |
100%
| xdgMime
| text/x-emacs-lisp
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 63 74 68 6f 6d 70 40 |piled by| cthomp@|
|00000020| 77 69 6c 6c 6f 77 2e 63 | 73 2e 75 69 75 63 2e 65 |willow.c|s.uiuc.e|
|00000030| 64 75 20 6f 6e 20 54 75 | 65 20 41 75 67 20 32 39 |du on Tu|e Aug 29|
|00000040| 20 31 34 3a 31 31 3a 30 | 38 20 31 39 39 35 0a 3b | 14:11:0|8 1995.;|
|00000050| 3b 3b 20 66 72 6f 6d 20 | 66 69 6c 65 20 2f 78 65 |;; from |file /xe|
|00000060| 6d 61 63 73 2f 78 65 6d | 61 63 73 2d 31 39 2e 31 |macs/xem|acs-19.1|
|00000070| 33 2d 72 65 6c 65 61 73 | 65 2f 65 64 69 74 6f 72 |3-releas|e/editor|
|00000080| 2f 6c 69 73 70 2f 70 61 | 63 6b 61 67 65 73 2f 61 |/lisp/pa|ckages/a|
|00000090| 75 74 6f 2d 73 61 76 65 | 2e 65 6c 0a 3b 3b 3b 20 |uto-save|.el.;;; |
|000000a0| 65 6d 61 63 73 20 76 65 | 72 73 69 6f 6e 20 31 39 |emacs ve|rsion 19|
|000000b0| 2e 31 33 20 58 45 6d 61 | 63 73 20 4c 75 63 69 64 |.13 XEma|cs Lucid|
|000000c0| 2e 0a 3b 3b 3b 20 62 79 | 74 65 63 6f 6d 70 20 76 |..;;; by|tecomp v|
|000000d0| 65 72 73 69 6f 6e 20 32 | 2e 32 35 3b 20 31 2d 53 |ersion 2|.25; 1-S|
|000000e0| 65 70 2d 39 34 2e 0a 3b | 3b 3b 20 6f 70 74 69 6d |ep-94..;|;; optim|
|000000f0| 69 7a 61 74 69 6f 6e 20 | 69 73 20 6f 6e 2e 0a 3b |ization |is on..;|
|00000100| 3b 3b 20 74 68 69 73 20 | 66 69 6c 65 20 75 73 65 |;; this |file use|
|00000110| 73 20 6f 70 63 6f 64 65 | 73 20 77 68 69 63 68 20 |s opcode|s which |
|00000120| 64 6f 20 6e 6f 74 20 65 | 78 69 73 74 20 69 6e 20 |do not e|xist in |
|00000130| 45 6d 61 63 73 20 31 38 | 2e 0a 0a 28 69 66 20 28 |Emacs 18|...(if (|
|00000140| 61 6e 64 20 28 62 6f 75 | 6e 64 70 20 27 65 6d 61 |and (bou|ndp 'ema|
|00000150| 63 73 2d 76 65 72 73 69 | 6f 6e 29 0a 09 20 28 6f |cs-versi|on).. (o|
|00000160| 72 20 28 61 6e 64 20 28 | 62 6f 75 6e 64 70 20 27 |r (and (|boundp '|
|00000170| 65 70 6f 63 68 3a 3a 76 | 65 72 73 69 6f 6e 29 20 |epoch::v|ersion) |
|00000180| 65 70 6f 63 68 3a 3a 76 | 65 72 73 69 6f 6e 29 0a |epoch::v|ersion).|
|00000190| 09 20 20 20 20 20 28 73 | 74 72 69 6e 67 2d 6c 65 |. (s|tring-le|
|000001a0| 73 73 70 20 65 6d 61 63 | 73 2d 76 65 72 73 69 6f |ssp emac|s-versio|
|000001b0| 6e 20 22 31 39 22 29 29 | 29 0a 20 20 20 20 28 65 |n "19"))|). (e|
|000001c0| 72 72 6f 72 20 22 54 68 | 69 73 20 66 69 6c 65 20 |rror "Th|is file |
|000001d0| 77 61 73 20 63 6f 6d 70 | 69 6c 65 64 20 66 6f 72 |was comp|iled for|
|000001e0| 20 45 6d 61 63 73 20 31 | 39 2e 22 29 29 0a 0a 28 | Emacs 1|9."))..(|
|000001f0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 11 c2 87 22 |byte-cod|e "...."|
|00000200| 20 5b 22 63 76 73 20 61 | 74 65 20 6d 65 22 20 61 | ["cvs a|te me" a|
|00000210| 75 74 6f 2d 73 61 76 65 | 2d 76 65 72 73 69 6f 6e |uto-save|-version|
|00000220| 20 6e 69 6c 5d 20 31 29 | 0a 28 64 65 66 76 61 72 | nil] 1)|.(defvar|
|00000230| 20 61 75 74 6f 2d 73 61 | 76 65 2d 64 69 72 65 63 | auto-sa|ve-direc|
|00000240| 74 6f 72 79 20 6e 69 6c | 20 22 5c 0a 49 66 20 6e |tory nil| "\.If n|
|00000250| 6f 6e 2d 6e 69 6c 2c 20 | 66 69 78 65 64 20 64 69 |on-nil, |fixed di|
|00000260| 72 65 63 74 6f 72 79 20 | 66 6f 72 20 61 75 74 6f |rectory |for auto|
|00000270| 73 61 76 69 6e 67 3a 20 | 61 6c 6c 20 61 75 74 6f |saving: |all auto|
|00000280| 73 61 76 65 20 66 69 6c | 65 73 20 67 6f 0a 74 68 |save fil|es go.th|
|00000290| 65 72 65 2e 20 20 49 66 | 20 74 68 69 73 20 64 69 |ere. If| this di|
|000002a0| 72 65 63 74 6f 72 79 20 | 64 6f 65 73 20 6e 6f 74 |rectory |does not|
|000002b0| 20 79 65 74 20 65 78 69 | 73 74 20 61 74 20 6c 6f | yet exi|st at lo|
|000002c0| 61 64 20 74 69 6d 65 2c | 20 69 74 20 69 73 0a 63 |ad time,| it is.c|
|000002d0| 72 65 61 74 65 64 20 61 | 6e 64 20 69 74 73 20 6d |reated a|nd its m|
|000002e0| 6f 64 65 20 69 73 20 73 | 65 74 20 74 6f 20 30 37 |ode is s|et to 07|
|000002f0| 30 30 20 73 6f 20 74 68 | 61 74 20 6e 6f 62 6f 64 |00 so th|at nobod|
|00000300| 79 20 65 6c 73 65 20 63 | 61 6e 20 72 65 61 64 20 |y else c|an read |
|00000310| 79 6f 75 72 0a 61 75 74 | 6f 73 61 76 65 20 66 69 |your.aut|osave fi|
|00000320| 6c 65 73 2e 0a 0a 49 66 | 20 6e 69 6c 2c 20 65 61 |les...If| nil, ea|
|00000330| 63 68 20 61 75 74 6f 73 | 61 76 65 20 66 69 6c 65 |ch autos|ave file|
|00000340| 73 20 67 6f 65 73 20 69 | 6e 74 6f 20 74 68 65 20 |s goes i|nto the |
|00000350| 73 61 6d 65 20 64 69 72 | 65 63 74 6f 72 79 20 61 |same dir|ectory a|
|00000360| 73 20 69 74 73 0a 63 6f | 72 72 65 73 70 6f 6e 64 |s its.co|rrespond|
|00000370| 69 6e 67 20 76 69 73 69 | 74 65 64 20 66 69 6c 65 |ing visi|ted file|
|00000380| 2e 0a 0a 41 20 6e 6f 6e | 2d 6e 69 6c 20 60 61 75 |...A non|-nil `au|
|00000390| 74 6f 2d 73 61 76 65 2d | 64 69 72 65 63 74 6f 72 |to-save-|director|
|000003a0| 79 27 20 63 6f 75 6c 64 | 20 62 65 20 6f 6e 20 61 |y' could| be on a|
|000003b0| 20 6c 6f 63 61 6c 20 64 | 69 73 6b 20 73 75 63 68 | local d|isk such|
|000003c0| 20 61 73 20 69 6e 0a 2f | 74 6d 70 2c 20 74 68 65 | as in./|tmp, the|
|000003d0| 6e 20 61 75 74 6f 2d 73 | 61 76 65 73 20 77 69 6c |n auto-s|aves wil|
|000003e0| 6c 20 61 6c 77 61 79 73 | 20 62 65 20 66 61 73 74 |l always| be fast|
|000003f0| 2c 20 65 76 65 6e 20 69 | 66 20 4e 46 53 20 6f 72 |, even i|f NFS or|
|00000400| 20 74 68 65 0a 61 75 74 | 6f 6d 6f 75 6e 74 65 72 | the.aut|omounter|
|00000410| 20 69 73 20 73 6c 6f 77 | 2e 20 20 49 6e 20 74 68 | is slow|. In th|
|00000420| 65 20 75 73 75 61 6c 20 | 63 61 73 65 20 6f 66 20 |e usual |case of |
|00000430| 2f 74 6d 70 20 62 65 69 | 6e 67 20 6c 6f 63 61 6c |/tmp bei|ng local|
|00000440| 6c 79 20 6d 6f 75 6e 74 | 65 64 2c 0a 6e 6f 74 65 |ly mount|ed,.note|
|00000450| 20 74 68 61 74 20 69 66 | 20 79 6f 75 20 72 75 6e | that if| you run|
|00000460| 20 65 6d 61 63 73 20 6f | 6e 20 74 77 6f 20 64 69 | emacs o|n two di|
|00000470| 66 66 65 72 65 6e 74 20 | 6d 61 63 68 69 6e 65 73 |fferent |machines|
|00000480| 2c 20 74 68 65 79 20 77 | 69 6c 6c 20 6e 6f 74 0a |, they w|ill not.|
|00000490| 73 65 65 20 65 61 63 68 | 20 6f 74 68 65 72 27 73 |see each| other's|
|000004a0| 20 61 75 74 6f 2d 73 61 | 76 65 20 66 69 6c 65 73 | auto-sa|ve files|
|000004b0| 2e 0a 0a 54 68 65 20 76 | 61 6c 75 65 20 28 65 78 |...The v|alue (ex|
|000004c0| 70 61 6e 64 2d 66 69 6c | 65 2d 6e 61 6d 65 20 5c |pand-fil|e-name \|
|000004d0| 22 7e 2f 61 75 74 6f 73 | 61 76 65 2f 5c 22 29 20 |"~/autos|ave/\") |
|000004e0| 6d 69 67 68 74 20 62 65 | 20 62 65 74 74 65 72 20 |might be| better |
|000004f0| 69 66 20 2f 74 6d 70 0a | 69 73 20 6d 6f 75 6e 74 |if /tmp.|is mount|
|00000500| 65 64 20 66 72 6f 6d 20 | 73 77 61 70 20 28 70 6f |ed from |swap (po|
|00000510| 73 73 69 62 6c 65 20 69 | 6e 20 53 75 6e 4f 53 2c |ssible i|n SunOS,|
|00000520| 20 74 79 70 65 20 60 64 | 66 20 2f 74 6d 70 27 20 | type `d|f /tmp' |
|00000530| 74 6f 20 66 69 6e 64 20 | 6f 75 74 29 0a 61 6e 64 |to find |out).and|
|00000540| 20 74 68 75 73 20 76 61 | 6e 69 73 68 65 73 20 61 | thus va|nishes a|
|00000550| 66 74 65 72 20 61 20 72 | 65 62 6f 6f 74 2c 20 6f |fter a r|eboot, o|
|00000560| 72 20 69 66 20 79 6f 75 | 72 20 73 79 73 74 65 6d |r if you|r system|
|00000570| 20 69 73 20 70 61 72 74 | 69 63 75 6c 61 72 6c 79 | is part|icularly|
|00000580| 0a 74 68 6f 72 6f 75 67 | 68 20 77 68 65 6e 20 63 |.thoroug|h when c|
|00000590| 6c 65 61 6e 69 6e 67 20 | 75 70 20 2f 74 6d 70 2c |leaning |up /tmp,|
|000005a0| 20 63 6c 65 61 72 69 6e | 67 20 65 76 65 6e 20 6e | clearin|g even n|
|000005b0| 6f 6e 2d 65 6d 70 74 79 | 20 73 75 62 64 69 72 65 |on-empty| subdire|
|000005c0| 63 74 6f 72 69 65 73 2e | 0a 0a 49 74 20 73 68 6f |ctories.|..It sho|
|000005d0| 75 6c 64 20 6e 65 76 65 | 72 20 62 65 20 61 6e 20 |uld neve|r be an |
|000005e0| 61 6e 67 65 2d 66 74 70 | 20 72 65 6d 6f 74 65 20 |ange-ftp| remote |
|000005f0| 66 69 6c 65 6e 61 6d 65 | 20 62 65 63 61 75 73 65 |filename| because|
|00000600| 20 74 68 61 74 20 77 6f | 75 6c 64 0a 64 65 66 65 | that wo|uld.defe|
|00000610| 61 74 20 60 61 6e 67 65 | 2d 66 74 70 2d 61 75 74 |at `ange|-ftp-aut|
|00000620| 6f 2d 73 61 76 65 2d 72 | 65 6d 6f 74 65 6c 79 27 |o-save-r|emotely'|
|00000630| 2e 0a 0a 55 6e 6c 65 73 | 73 20 79 6f 75 20 73 65 |...Unles|s you se|
|00000640| 74 20 60 61 75 74 6f 2d | 73 61 76 65 2d 68 61 73 |t `auto-|save-has|
|00000650| 68 2d 70 27 2c 20 79 6f | 75 20 73 68 6f 75 6c 64 |h-p', yo|u should|
|00000660| 6e 27 74 20 73 65 74 20 | 74 68 69 73 20 74 6f 20 |n't set |this to |
|00000670| 61 0a 64 69 72 65 63 74 | 6f 72 79 20 69 6e 20 61 |a.direct|ory in a|
|00000680| 20 66 69 6c 65 73 79 73 | 74 65 6d 20 74 68 61 74 | filesys|tem that|
|00000690| 20 64 6f 65 73 20 6e 6f | 74 20 73 75 70 70 6f 72 | does no|t suppor|
|000006a0| 74 20 6c 6f 6e 67 20 66 | 69 6c 65 6e 61 6d 65 73 |t long f|ilenames|
|000006b0| 2c 20 73 69 6e 63 65 0a | 61 20 66 69 6c 65 20 6e |, since.|a file n|
|000006c0| 61 6d 65 64 0a 0a 20 20 | 20 20 2f 68 6f 6d 65 2f |amed.. | /home/|
|000006d0| 73 6b 2f 6c 69 62 2f 65 | 6d 61 63 73 2f 6c 69 73 |sk/lib/e|macs/lis|
|000006e0| 70 2f 61 75 74 6f 2d 73 | 61 76 65 2e 65 6c 0a 0a |p/auto-s|ave.el..|
|000006f0| 77 69 6c 6c 20 68 61 76 | 65 20 61 20 6c 6f 6e 67 |will hav|e a long|
|00000700| 69 73 68 20 66 69 6c 65 | 6e 61 6d 65 20 6c 69 6b |ish file|name lik|
|00000710| 65 0a 0a 20 20 20 20 41 | 55 54 4f 2d 53 41 56 45 |e.. A|UTO-SAVE|
|00000720| 2d 44 49 52 45 43 54 4f | 52 59 2f 23 5c 5c 21 68 |-DIRECTO|RY/#\\!h|
|00000730| 6f 6d 65 5c 5c 21 73 6b | 5c 5c 21 6c 69 62 5c 5c |ome\\!sk|\\!lib\\|
|00000740| 21 65 6d 61 63 73 5c 5c | 21 6c 69 73 70 5c 5c 21 |!emacs\\|!lisp\\!|
|00000750| 61 75 74 6f 2d 73 61 76 | 65 2e 65 6c 23 0a 0a 61 |auto-sav|e.el#..a|
|00000760| 73 20 61 75 74 6f 20 73 | 61 76 65 20 66 69 6c 65 |s auto s|ave file|
|00000770| 2e 0a 0a 53 65 65 20 61 | 6c 73 6f 20 76 61 72 69 |...See a|lso vari|
|00000780| 61 62 6c 65 73 20 60 61 | 75 74 6f 2d 73 61 76 65 |ables `a|uto-save|
|00000790| 2d 64 69 72 65 63 74 6f | 72 79 2d 66 61 6c 6c 62 |-directo|ry-fallb|
|000007a0| 61 63 6b 27 2c 20 60 61 | 75 74 6f 2d 73 61 76 65 |ack', `a|uto-save|
|000007b0| 2d 68 61 73 68 2d 70 27 | 2c 0a 60 61 6e 67 65 2d |-hash-p'|,.`ange-|
|000007c0| 66 74 70 2d 61 75 74 6f | 2d 73 61 76 65 27 20 61 |ftp-auto|-save' a|
|000007d0| 6e 64 20 60 61 6e 67 65 | 2d 66 74 70 2d 61 75 74 |nd `ange|-ftp-aut|
|000007e0| 6f 2d 73 61 76 65 2d 72 | 65 6d 6f 74 65 6c 79 27 |o-save-r|emotely'|
|000007f0| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 61 75 74 6f |.").(def|var auto|
|00000800| 2d 73 61 76 65 2d 68 61 | 73 68 2d 70 20 6e 69 6c |-save-ha|sh-p nil|
|00000810| 20 22 5c 0a 49 66 20 6e | 6f 6e 2d 6e 69 6c 2c 20 | "\.If n|on-nil, |
|00000820| 68 61 73 68 65 64 20 61 | 75 74 6f 73 61 76 65 20 |hashed a|utosave |
|00000830| 6e 61 6d 65 73 20 6f 66 | 20 6c 65 6e 67 74 68 20 |names of| length |
|00000840| 31 34 20 61 72 65 20 75 | 73 65 64 2e 0a 54 68 69 |14 are u|sed..Thi|
|00000850| 73 20 69 73 20 74 6f 20 | 61 76 6f 69 64 20 61 75 |s is to |avoid au|
|00000860| 74 6f 73 61 76 65 20 66 | 69 6c 65 6e 61 6d 65 73 |tosave f|ilenames|
|00000870| 20 6c 6f 6e 67 65 72 20 | 74 68 61 6e 20 31 34 20 | longer |than 14 |
|00000880| 63 68 61 72 61 63 74 65 | 72 73 2e 0a 54 68 65 20 |characte|rs..The |
|00000890| 64 69 72 65 63 74 6f 72 | 79 20 75 73 65 64 20 69 |director|y used i|
|000008a0| 73 20 60 61 75 74 6f 2d | 73 61 76 65 2d 68 61 73 |s `auto-|save-has|
|000008b0| 68 2d 64 69 72 65 63 74 | 6f 72 79 27 20 72 65 67 |h-direct|ory' reg|
|000008c0| 61 72 64 6c 65 73 73 20 | 6f 66 0a 60 61 75 74 6f |ardless |of.`auto|
|000008d0| 2d 73 61 76 65 2d 64 69 | 72 65 63 74 6f 72 79 27 |-save-di|rectory'|
|000008e0| 2e 0a 48 61 73 68 69 6e | 67 20 64 65 66 65 61 74 |..Hashin|g defeat|
|000008f0| 73 20 60 72 65 63 6f 76 | 65 72 2d 61 6c 6c 2d 66 |s `recov|er-all-f|
|00000900| 69 6c 65 73 27 2c 20 79 | 6f 75 20 68 61 76 65 20 |iles', y|ou have |
|00000910| 74 6f 20 72 65 63 6f 76 | 65 72 20 66 69 6c 65 73 |to recov|er files|
|00000920| 0a 69 6e 64 69 76 69 64 | 75 61 6c 6c 79 20 62 79 |.individ|ually by|
|00000930| 20 64 6f 69 6e 67 20 60 | 72 65 63 6f 76 65 72 2d | doing `|recover-|
|00000940| 66 69 6c 65 27 2e 22 29 | 0a 28 64 65 66 76 61 72 |file'.")|.(defvar|
|00000950| 20 61 6e 67 65 2d 66 74 | 70 2d 61 75 74 6f 2d 73 | ange-ft|p-auto-s|
|00000960| 61 76 65 20 30 20 22 5c | 0a 49 66 20 31 2c 20 61 |ave 0 "\|.If 1, a|
|00000970| 6c 6c 6f 77 73 20 61 6e | 67 65 2d 66 74 70 20 66 |llows an|ge-ftp f|
|00000980| 69 6c 65 73 20 74 6f 20 | 62 65 20 61 75 74 6f 2d |iles to |be auto-|
|00000990| 73 61 76 65 64 2e 0a 49 | 66 20 30 2c 20 73 75 70 |saved..I|f 0, sup|
|000009a0| 70 72 65 73 73 65 73 20 | 61 75 74 6f 2d 73 61 76 |presses |auto-sav|
|000009b0| 69 6e 67 20 6f 66 20 61 | 6e 67 65 2d 66 74 70 20 |ing of a|nge-ftp |
|000009c0| 66 69 6c 65 73 2e 0a 44 | 6f 6e 27 74 20 75 73 65 |files..D|on't use|
|000009d0| 20 61 6e 79 20 6f 74 68 | 65 72 20 76 61 6c 75 65 | any oth|er value|
|000009e0| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 61 6e 67 65 |.").(def|var ange|
|000009f0| 2d 66 74 70 2d 61 75 74 | 6f 2d 73 61 76 65 2d 72 |-ftp-aut|o-save-r|
|00000a00| 65 6d 6f 74 65 6c 79 20 | 6e 69 6c 20 22 5c 0a 2a |emotely |nil "\.*|
|00000a10| 49 66 20 6e 6f 6e 2d 6e | 69 6c 2c 20 63 61 75 73 |If non-n|il, caus|
|00000a20| 65 73 20 74 68 65 20 61 | 75 74 6f 2d 73 61 76 65 |es the a|uto-save|
|00000a30| 20 66 69 6c 65 20 66 6f | 72 20 61 6e 20 61 6e 67 | file fo|r an ang|
|00000a40| 65 2d 66 74 70 20 66 69 | 6c 65 20 74 6f 20 62 65 |e-ftp fi|le to be|
|00000a50| 20 77 72 69 74 74 65 6e | 20 69 6e 0a 74 68 65 20 | written| in.the |
|00000a60| 72 65 6d 6f 74 65 20 64 | 69 72 65 63 74 6f 72 79 |remote d|irectory|
|00000a70| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 74 68 65 20 | contain|ing the |
|00000a80| 66 69 6c 65 2c 20 72 61 | 74 68 65 72 20 74 68 61 |file, ra|ther tha|
|00000a90| 6e 20 69 6e 20 61 20 6c | 6f 63 61 6c 20 64 69 72 |n in a l|ocal dir|
|00000aa0| 65 63 74 6f 72 79 2e 0a | 0a 46 6f 72 20 72 65 6d |ectory..|.For rem|
|00000ab0| 6f 74 65 20 66 69 6c 65 | 73 2c 20 74 68 69 73 20 |ote file|s, this |
|00000ac0| 62 65 69 6e 67 20 74 72 | 75 65 20 6f 76 65 72 72 |being tr|ue overr|
|00000ad0| 69 64 65 73 20 61 20 6e | 6f 6e 2d 6e 69 6c 0a 60 |ides a n|on-nil.`|
|00000ae0| 61 75 74 6f 2d 73 61 76 | 65 2d 64 69 72 65 63 74 |auto-sav|e-direct|
|00000af0| 6f 72 79 27 2e 20 20 4c | 6f 63 61 6c 20 66 69 6c |ory'. L|ocal fil|
|00000b00| 65 73 20 61 72 65 20 75 | 6e 61 66 66 65 63 74 65 |es are u|naffecte|
|00000b10| 64 2e 0a 0a 49 66 20 79 | 6f 75 20 77 61 6e 74 20 |d...If y|ou want |
|00000b20| 74 6f 20 75 73 65 20 74 | 68 69 73 20 66 65 61 74 |to use t|his feat|
|00000b30| 75 72 65 2c 20 79 6f 75 | 20 70 72 6f 62 61 62 6c |ure, you| probabl|
|00000b40| 79 20 6f 6e 6c 79 20 77 | 61 6e 74 20 74 6f 20 73 |y only w|ant to s|
|00000b50| 65 74 20 74 68 69 73 0a | 74 72 75 65 20 69 6e 20 |et this.|true in |
|00000b60| 61 20 66 65 77 20 62 75 | 66 66 65 72 73 2c 20 72 |a few bu|ffers, r|
|00000b70| 61 74 68 65 72 20 74 68 | 61 6e 20 67 6c 6f 62 61 |ather th|an globa|
|00000b80| 6c 6c 79 2e 20 20 59 6f | 75 20 6d 69 67 68 74 20 |lly. Yo|u might |
|00000b90| 77 61 6e 74 20 74 6f 20 | 67 69 76 65 0a 65 61 63 |want to |give.eac|
|00000ba0| 68 20 62 75 66 66 65 72 | 20 69 74 73 20 6f 77 6e |h buffer| its own|
|00000bb0| 20 76 61 6c 75 65 20 75 | 73 69 6e 67 20 60 6d 61 | value u|sing `ma|
|00000bc0| 6b 65 2d 76 61 72 69 61 | 62 6c 65 2d 62 75 66 66 |ke-varia|ble-buff|
|00000bd0| 65 72 2d 6c 6f 63 61 6c | 27 2e 0a 0a 53 65 65 20 |er-local|'...See |
|00000be0| 61 6c 73 6f 20 76 61 72 | 69 61 62 6c 65 20 60 61 |also var|iable `a|
|00000bf0| 6e 67 65 2d 66 74 70 2d | 61 75 74 6f 2d 73 61 76 |nge-ftp-|auto-sav|
|00000c00| 65 27 2e 22 29 0a 28 64 | 65 66 76 61 72 20 61 75 |e'.").(d|efvar au|
|00000c10| 74 6f 2d 73 61 76 65 2d | 64 69 72 65 63 74 6f 72 |to-save-|director|
|00000c20| 79 2d 66 61 6c 6c 62 61 | 63 6b 20 28 65 78 70 61 |y-fallba|ck (expa|
|00000c30| 6e 64 2d 66 69 6c 65 2d | 6e 61 6d 65 20 22 7e 2f |nd-file-|name "~/|
|00000c40| 61 75 74 6f 73 61 76 65 | 2f 22 29 20 22 5c 0a 44 |autosave|/") "\.D|
|00000c50| 69 72 65 63 74 6f 72 79 | 20 75 73 65 64 20 66 6f |irectory| used fo|
|00000c60| 72 20 6c 6f 63 61 6c 20 | 61 75 74 6f 73 61 76 69 |r local |autosavi|
|00000c70| 6e 67 20 6f 66 20 72 65 | 6d 6f 74 65 20 66 69 6c |ng of re|mote fil|
|00000c80| 65 73 20 69 66 0a 62 6f | 74 68 20 60 61 75 74 6f |es if.bo|th `auto|
|00000c90| 2d 73 61 76 65 2d 64 69 | 72 65 63 74 6f 72 79 27 |-save-di|rectory'|
|00000ca0| 20 61 6e 64 20 60 61 6e | 67 65 2d 66 74 70 2d 61 | and `an|ge-ftp-a|
|00000cb0| 75 74 6f 2d 73 61 76 65 | 2d 72 65 6d 6f 74 65 6c |uto-save|-remotel|
|00000cc0| 79 27 20 61 72 65 20 6e | 69 6c 2e 0a 41 6c 73 6f |y' are n|il..Also|
|00000cd0| 20 75 73 65 64 20 69 66 | 20 61 20 77 6f 72 6b 69 | used if| a worki|
|00000ce0| 6e 67 20 64 69 72 65 63 | 74 6f 72 79 20 74 6f 20 |ng direc|tory to |
|00000cf0| 62 65 20 75 73 65 64 20 | 66 6f 72 20 61 75 74 6f |be used |for auto|
|00000d00| 73 61 76 69 6e 67 20 69 | 73 20 6e 6f 74 20 77 72 |saving i|s not wr|
|00000d10| 69 74 61 62 6c 65 2e 0a | 54 68 69 73 20 2a 6d 75 |itable..|This *mu|
|00000d20| 73 74 2a 20 61 6c 77 61 | 79 73 20 62 65 20 74 68 |st* alwa|ys be th|
|00000d30| 65 20 6e 61 6d 65 20 6f | 66 20 64 69 72 65 63 74 |e name o|f direct|
|00000d40| 6f 72 79 20 74 68 61 74 | 20 65 78 69 73 74 73 20 |ory that| exists |
|00000d50| 6f 72 20 63 61 6e 20 62 | 65 0a 63 72 65 61 74 65 |or can b|e.create|
|00000d60| 64 20 62 79 20 79 6f 75 | 2c 20 6e 65 76 65 72 20 |d by you|, never |
|00000d70| 6e 69 6c 2e 22 29 0a 28 | 64 65 66 76 61 72 20 61 |nil.").(|defvar a|
|00000d80| 75 74 6f 2d 73 61 76 65 | 2d 68 61 73 68 2d 64 69 |uto-save|-hash-di|
|00000d90| 72 65 63 74 6f 72 79 20 | 28 62 79 74 65 2d 63 6f |rectory |(byte-co|
|00000da0| 64 65 20 22 c0 c1 5c 6e | ae 81 0b 5c 22 87 22 20 |de "..\n|...\"." |
|00000db0| 5b 65 78 70 61 6e 64 2d | 66 69 6c 65 2d 6e 61 6d |[expand-|file-nam|
|00000dc0| 65 20 22 68 61 73 68 2f | 22 20 61 75 74 6f 2d 73 |e "hash/|" auto-s|
|00000dd0| 61 76 65 2d 64 69 72 65 | 63 74 6f 72 79 20 61 75 |ave-dire|ctory au|
|00000de0| 74 6f 2d 73 61 76 65 2d | 64 69 72 65 63 74 6f 72 |to-save-|director|
|00000df0| 79 2d 66 61 6c 6c 62 61 | 63 6b 5d 20 33 29 20 22 |y-fallba|ck] 3) "|
|00000e00| 5c 0a 49 66 20 6e 6f 6e | 2d 6e 69 6c 2c 20 64 69 |\.If non|-nil, di|
|00000e10| 72 65 63 74 6f 72 79 20 | 75 73 65 64 20 66 6f 72 |rectory |used for|
|00000e20| 20 68 61 73 68 65 64 20 | 61 75 74 6f 73 61 76 65 | hashed |autosave|
|00000e30| 20 66 69 6c 65 6e 61 6d | 65 73 2e 22 29 0a 28 62 | filenam|es.").(b|
|00000e40| 79 74 65 2d 63 6f 64 65 | 20 22 c0 c1 4d 88 c2 c0 |yte-code| "..M...|
|00000e50| c3 5c 22 88 0c ab 84 c0 | c5 21 88 c0 87 22 20 5b |.\".....|.!..." [|
|00000e60| 61 75 74 6f 2d 73 61 76 | 65 2d 63 68 65 63 6b 2d |auto-sav|e-check-|
|00000e70| 64 69 72 65 63 74 6f 72 | 79 20 23 5b 28 76 61 72 |director|y #[(var|
|00000e80| 29 20 22 08 4a 89 19 3f | 3f ad a9 08 c2 09 21 89 |) ".J..?|?.....!.|
|00000e90| 11 4c 88 c3 09 21 3f ad | 9b c4 09 21 11 c5 c6 21 |.L...!?.|...!...!|
|00000ea0| ab 86 c6 09 21 88 aa 88 | c7 c8 c9 89 89 09 25 88 |....!...|......%.|
|00000eb0| ca 09 cb 5c 22 29 87 22 | 20 5b 76 61 72 20 64 69 |...\")."| [var di|
|00000ec0| 72 20 65 78 70 61 6e 64 | 2d 66 69 6c 65 2d 6e 61 |r expand|-file-na|
|00000ed0| 6d 65 20 66 69 6c 65 2d | 64 69 72 65 63 74 6f 72 |me file-|director|
|00000ee0| 79 2d 70 20 64 69 72 65 | 63 74 6f 72 79 2d 66 69 |y-p dire|ctory-fi|
|00000ef0| 6c 65 2d 6e 61 6d 65 20 | 66 62 6f 75 6e 64 70 20 |le-name |fboundp |
|00000f00| 6d 61 6b 65 2d 64 69 72 | 65 63 74 6f 72 79 20 63 |make-dir|ectory c|
|00000f10| 61 6c 6c 2d 70 72 6f 63 | 65 73 73 20 22 6d 6b 64 |all-proc|ess "mkd|
|00000f20| 69 72 22 20 6e 69 6c 20 | 73 65 74 2d 66 69 6c 65 |ir" nil |set-file|
|00000f30| 2d 6d 6f 64 65 73 20 34 | 34 38 5d 20 37 5d 20 6d |-modes 4|48] 7] m|
|00000f40| 61 70 63 61 72 20 28 61 | 75 74 6f 2d 73 61 76 65 |apcar (a|uto-save|
|00000f50| 2d 64 69 72 65 63 74 6f | 72 79 20 61 75 74 6f 2d |-directo|ry auto-|
|00000f60| 73 61 76 65 2d 64 69 72 | 65 63 74 6f 72 79 2d 66 |save-dir|ectory-f|
|00000f70| 61 6c 6c 62 61 63 6b 29 | 20 61 75 74 6f 2d 73 61 |allback)| auto-sa|
|00000f80| 76 65 2d 68 61 73 68 2d | 70 20 61 75 74 6f 2d 73 |ve-hash-|p auto-s|
|00000f90| 61 76 65 2d 68 61 73 68 | 2d 64 69 72 65 63 74 6f |ave-hash|-directo|
|00000fa0| 72 79 5d 20 33 29 0a 28 | 66 73 65 74 20 27 6d 61 |ry] 3).(|fset 'ma|
|00000fb0| 6b 65 2d 61 75 74 6f 2d | 73 61 76 65 2d 66 69 6c |ke-auto-|save-fil|
|00000fc0| 65 2d 6e 61 6d 65 20 23 | 5b 6e 69 6c 20 22 c0 c1 |e-name #|[nil "..|
|00000fd0| c2 8f 87 22 20 5b 65 72 | 72 6f 72 2d 64 61 74 61 |..." [er|ror-data|
|00000fe0| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 c1 21 | (byte-c|ode "..!|
|00000ff0| ab 83 09 ae 81 5c 6e 89 | 1b 3f ad 81 c4 1d 0b ae |.....\n.|.?......|
|00001000| 84 c6 c7 20 21 1e 08 0b | 3b ad 88 c9 ca 21 ad 83 |... !...|;....!..|
|00001010| ca 0b 21 1e 0b cc 0e 0b | ab 90 0e 0d ab 86 ce 0e |..!.....|........|
|00001020| 08 21 aa 9a cf 0e 08 21 | aa 94 0e 10 ac 84 0e 11 |.!.....!|........|
|00001030| ab 87 cf 0e 08 0d 5c 22 | aa 85 ce 0e 08 0d 5c 22 |......\"|......\"|
|00001040| 21 2c 87 22 20 5b 62 6f | 75 6e 64 70 20 62 75 66 |!,." [bo|undp buf|
|00001050| 66 65 72 2d 66 69 6c 65 | 2d 74 72 75 65 6e 61 6d |fer-file|-truenam|
|00001060| 65 20 62 75 66 66 65 72 | 2d 66 69 6c 65 2d 6e 61 |e buffer|-file-na|
|00001070| 6d 65 20 66 69 6c 65 2d | 6e 61 6d 65 20 22 23 25 |me file-|name "#%|
|00001080| 22 20 6e 61 6d 65 2d 70 | 72 65 66 69 78 20 61 75 |" name-p|refix au|
|00001090| 74 6f 2d 73 61 76 65 2d | 75 6e 73 6c 61 73 68 69 |to-save-|unslashi|
|000010a0| 66 79 2d 6e 61 6d 65 20 | 62 75 66 66 65 72 2d 6e |fy-name |buffer-n|
|000010b0| 61 6d 65 20 73 61 76 65 | 2d 6e 61 6d 65 20 66 62 |ame save|-name fb|
|000010c0| 6f 75 6e 64 70 20 61 6e | 67 65 2d 66 74 70 2d 66 |oundp an|ge-ftp-f|
|000010d0| 74 70 2d 70 61 74 68 20 | 72 65 6d 6f 74 65 2d 70 |tp-path |remote-p|
|000010e0| 20 65 78 70 61 6e 64 2d | 66 69 6c 65 2d 6e 61 6d | expand-|file-nam|
|000010f0| 65 20 61 6e 67 65 2d 66 | 74 70 2d 61 75 74 6f 2d |e ange-f|tp-auto-|
|00001100| 73 61 76 65 2d 72 65 6d | 6f 74 65 6c 79 20 61 75 |save-rem|otely au|
|00001110| 74 6f 2d 73 61 76 65 2d | 6e 61 6d 65 2d 69 6e 2d |to-save-|name-in-|
|00001120| 73 61 6d 65 2d 64 69 72 | 65 63 74 6f 72 79 20 61 |same-dir|ectory a|
|00001130| 75 74 6f 2d 73 61 76 65 | 2d 6e 61 6d 65 2d 69 6e |uto-save|-name-in|
|00001140| 2d 66 69 78 65 64 2d 64 | 69 72 65 63 74 6f 72 79 |-fixed-d|irectory|
|00001150| 20 61 75 74 6f 2d 73 61 | 76 65 2d 64 69 72 65 63 | auto-sa|ve-direc|
|00001160| 74 6f 72 79 20 61 75 74 | 6f 2d 73 61 76 65 2d 68 |tory aut|o-save-h|
|00001170| 61 73 68 2d 70 5d 20 35 | 29 20 28 28 65 72 72 6f |ash-p] 5|) ((erro|
|00001180| 72 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |r (byte-|code "..|
|00001190| 5c 6e 5c 22 88 c3 c4 21 | 88 0d ab 8a c6 0d 21 c7 |\n\"...!|......!.|
|000011a0| c8 0d 21 c7 52 87 c9 ca | cb 20 c7 51 21 87 22 20 |..!.R...|. .Q!." |
|000011b0| 5b 6d 65 73 73 61 67 65 | 20 22 6d 61 6b 65 2d 61 |[message| "make-a|
|000011c0| 75 74 6f 2d 73 61 76 65 | 2d 66 69 6c 65 2d 6e 61 |uto-save|-file-na|
|000011d0| 6d 65 20 25 73 22 20 65 | 72 72 6f 72 2d 64 61 74 |me %s" e|rror-dat|
|000011e0| 61 20 73 69 74 2d 66 6f | 72 20 32 20 62 75 66 66 |a sit-fo|r 2 buff|
|000011f0| 65 72 2d 66 69 6c 65 2d | 6e 61 6d 65 20 66 69 6c |er-file-|name fil|
|00001200| 65 2d 6e 61 6d 65 2d 64 | 69 72 65 63 74 6f 72 79 |e-name-d|irectory|
|00001210| 20 22 23 22 20 66 69 6c | 65 2d 6e 61 6d 65 2d 6e | "#" fil|e-name-n|
|00001220| 6f 6e 64 69 72 65 63 74 | 6f 72 79 20 65 78 70 61 |ondirect|ory expa|
|00001230| 6e 64 2d 66 69 6c 65 2d | 6e 61 6d 65 20 22 23 25 |nd-file-|name "#%|
|00001240| 22 20 62 75 66 66 65 72 | 2d 6e 61 6d 65 5d 20 34 |" buffer|-name] 4|
|00001250| 29 29 29 5d 20 33 20 22 | 5c 0a 52 65 74 75 72 6e |)))] 3 "|\.Return|
|00001260| 20 66 69 6c 65 20 6e 61 | 6d 65 20 74 6f 20 75 73 | file na|me to us|
|00001270| 65 20 66 6f 72 20 61 75 | 74 6f 2d 73 61 76 65 73 |e for au|to-saves|
|00001280| 20 6f 66 20 63 75 72 72 | 65 6e 74 20 62 75 66 66 | of curr|ent buff|
|00001290| 65 72 2e 0a 44 6f 65 73 | 20 6e 6f 74 20 63 6f 6e |er..Does| not con|
|000012a0| 73 69 64 65 72 20 60 61 | 75 74 6f 2d 73 61 76 65 |sider `a|uto-save|
|000012b0| 2d 76 69 73 69 74 65 64 | 2d 66 69 6c 65 2d 6e 61 |-visited|-file-na|
|000012c0| 6d 65 27 3b 20 74 68 61 | 74 20 69 73 20 63 68 65 |me'; tha|t is che|
|000012d0| 63 6b 65 64 0a 62 65 66 | 6f 72 65 20 63 61 6c 6c |cked.bef|ore call|
|000012e0| 69 6e 67 20 74 68 69 73 | 20 66 75 6e 63 74 69 6f |ing this| functio|
|000012f0| 6e 2e 0a 0a 4f 66 66 65 | 72 73 20 74 6f 20 61 75 |n...Offe|rs to au|
|00001300| 74 6f 73 61 76 65 20 61 | 6c 6c 20 66 69 6c 65 73 |tosave a|ll files|
|00001310| 20 69 6e 20 74 68 65 20 | 73 61 6d 65 20 60 61 75 | in the |same `au|
|00001320| 74 6f 2d 73 61 76 65 2d | 64 69 72 65 63 74 6f 72 |to-save-|director|
|00001330| 79 27 2e 20 20 41 6c 6c | 0a 61 75 74 6f 73 61 76 |y'. All|.autosav|
|00001340| 65 20 66 69 6c 65 73 20 | 63 61 6e 20 74 68 65 6e |e files |can then|
|00001350| 20 62 65 20 72 65 63 6f | 76 65 72 65 64 20 61 74 | be reco|vered at|
|00001360| 20 6f 6e 63 65 20 77 69 | 74 68 20 66 75 6e 63 74 | once wi|th funct|
|00001370| 69 6f 6e 0a 60 72 65 63 | 6f 76 65 72 2d 61 6c 6c |ion.`rec|over-all|
|00001380| 2d 66 69 6c 65 73 27 2e | 0a 0a 54 61 6b 65 73 20 |-files'.|..Takes |
|00001390| 63 61 72 65 20 74 6f 20 | 6d 61 6b 65 20 61 75 74 |care to |make aut|
|000013a0| 6f 73 61 76 65 20 66 69 | 6c 65 73 20 66 6f 72 20 |osave fi|les for |
|000013b0| 66 69 6c 65 73 20 61 63 | 63 65 73 73 65 64 20 74 |files ac|cessed t|
|000013c0| 68 72 6f 75 67 68 20 61 | 6e 67 65 2d 66 74 70 0a |hrough a|nge-ftp.|
|000013d0| 62 65 20 6c 6f 63 61 6c | 20 66 69 6c 65 73 20 69 |be local| files i|
|000013e0| 66 20 76 61 72 69 61 62 | 6c 65 20 60 61 6e 67 65 |f variab|le `ange|
|000013f0| 2d 66 74 70 2d 61 75 74 | 6f 2d 73 61 76 65 2d 72 |-ftp-aut|o-save-r|
|00001400| 65 6d 6f 74 65 6c 79 27 | 20 69 73 20 6e 69 6c 2e |emotely'| is nil.|
|00001410| 0a 0a 54 61 6b 65 73 20 | 63 61 72 65 20 6f 66 20 |..Takes |care of |
|00001420| 73 6c 61 73 68 65 73 20 | 69 6e 20 62 75 66 66 65 |slashes |in buffe|
|00001430| 72 20 6e 61 6d 65 73 20 | 74 6f 20 70 72 65 76 65 |r names |to preve|
|00001440| 6e 74 20 61 75 74 6f 73 | 61 76 65 20 65 72 72 6f |nt autos|ave erro|
|00001450| 72 73 2e 0a 0a 55 73 65 | 73 20 31 34 20 63 68 61 |rs...Use|s 14 cha|
|00001460| 72 61 63 74 65 72 20 61 | 75 74 6f 73 61 76 65 20 |racter a|utosave |
|00001470| 6e 61 6d 65 73 20 69 66 | 20 60 61 75 74 6f 2d 73 |names if| `auto-s|
|00001480| 61 76 65 2d 68 61 73 68 | 2d 70 27 20 69 73 20 74 |ave-hash|-p' is t|
|00001490| 72 75 65 2e 0a 0a 41 75 | 74 6f 73 61 76 65 73 20 |rue...Au|tosaves |
|000014a0| 65 76 65 6e 20 69 66 20 | 74 68 65 20 63 75 72 72 |even if |the curr|
|000014b0| 65 6e 74 20 64 69 72 65 | 63 74 6f 72 79 20 69 73 |ent dire|ctory is|
|000014c0| 20 6e 6f 74 20 77 72 69 | 74 61 62 6c 65 2c 20 75 | not wri|table, u|
|000014d0| 73 69 6e 67 0a 64 69 72 | 65 63 74 6f 72 79 20 60 |sing.dir|ectory `|
|000014e0| 61 75 74 6f 2d 73 61 76 | 65 2d 64 69 72 65 63 74 |auto-sav|e-direct|
|000014f0| 6f 72 79 2d 66 61 6c 6c | 62 61 63 6b 27 2e 0a 0a |ory-fall|back'...|
|00001500| 59 6f 75 20 63 61 6e 20 | 72 65 64 65 66 69 6e 65 |You can |redefine|
|00001510| 20 74 68 69 73 20 66 6f | 72 20 63 75 73 74 6f 6d | this fo|r custom|
|00001520| 69 7a 61 74 69 6f 6e 20 | 28 68 65 20 68 65 20 3a |ization |(he he :|
|00001530| 2d 29 2e 0a 53 65 65 20 | 61 6c 73 6f 20 66 75 6e |-)..See |also fun|
|00001540| 63 74 69 6f 6e 20 60 61 | 75 74 6f 2d 73 61 76 65 |ction `a|uto-save|
|00001550| 2d 66 69 6c 65 2d 6e 61 | 6d 65 2d 70 27 2e 22 5d |-file-na|me-p'."]|
|00001560| 29 0a 28 66 73 65 74 20 | 27 61 75 74 6f 2d 73 61 |).(fset |'auto-sa|
|00001570| 76 65 2d 6f 72 69 67 69 | 6e 61 6c 2d 6e 61 6d 65 |ve-origi|nal-name|
|00001580| 20 23 5b 28 73 61 76 65 | 6e 61 6d 65 29 20 22 c0 | #[(save|name) ".|
|00001590| 09 21 c2 09 21 1b 1c c5 | 0c 21 ab 86 c6 c7 0c 5c |.!..!...|.!.....\|
|000015a0| 22 ab 83 c8 aa 9a 0b 0e | 09 9a ac 86 0b 0e 5c 6e |".......|......\n|
|000015b0| 9a ab 88 cb 0c cc cd 4f | 21 aa 86 0b 0c cc cd 4f |.......O|!......O|
|000015c0| 50 2a 87 22 20 5b 66 69 | 6c 65 2d 6e 61 6d 65 2d |P*." [fi|le-name-|
|000015d0| 6e 6f 6e 64 69 72 65 63 | 74 6f 72 79 20 73 61 76 |nondirec|tory sav|
|000015e0| 65 6e 61 6d 65 20 66 69 | 6c 65 2d 6e 61 6d 65 2d |ename fi|le-name-|
|000015f0| 64 69 72 65 63 74 6f 72 | 79 20 73 61 76 65 64 69 |director|y savedi|
|00001600| 72 20 62 61 73 65 6e 61 | 6d 65 20 61 75 74 6f 2d |r basena|me auto-|
|00001610| 73 61 76 65 2d 66 69 6c | 65 2d 6e 61 6d 65 2d 70 |save-fil|e-name-p|
|00001620| 20 73 74 72 69 6e 67 2d | 6d 61 74 63 68 20 22 5e | string-|match "^|
|00001630| 23 25 22 20 6e 69 6c 20 | 61 75 74 6f 2d 73 61 76 |#%" nil |auto-sav|
|00001640| 65 2d 64 69 72 65 63 74 | 6f 72 79 20 61 75 74 6f |e-direct|ory auto|
|00001650| 2d 73 61 76 65 2d 64 69 | 72 65 63 74 6f 72 79 2d |-save-di|rectory-|
|00001660| 66 61 6c 6c 62 61 63 6b | 20 61 75 74 6f 2d 73 61 |fallback| auto-sa|
|00001670| 76 65 2d 73 6c 61 73 68 | 69 66 79 2d 6e 61 6d 65 |ve-slash|ify-name|
|00001680| 20 31 20 2d 31 5d 20 34 | 20 22 5c 0a 52 65 76 65 | 1 -1] 4| "\.Reve|
|00001690| 72 73 65 20 6f 66 20 60 | 6d 61 6b 65 2d 61 75 74 |rse of `|make-aut|
|000016a0| 6f 2d 73 61 76 65 2d 66 | 69 6c 65 2d 6e 61 6d 65 |o-save-f|ile-name|
|000016b0| 27 2e 0a 52 65 74 75 72 | 6e 73 20 6e 69 6c 20 69 |'..Retur|ns nil i|
|000016c0| 66 20 53 41 56 45 4e 41 | 4d 45 20 77 61 73 20 6e |f SAVENA|ME was n|
|000016d0| 6f 74 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |ot assoc|iated wi|
|000016e0| 74 68 20 61 20 66 69 6c | 65 20 28 65 2e 67 2e 2c |th a fil|e (e.g.,|
|000016f0| 20 69 74 20 63 61 6d 65 | 0a 66 72 6f 6d 20 61 6e | it came|.from an|
|00001700| 20 61 75 74 6f 73 61 76 | 65 64 20 60 2a 6d 61 69 | autosav|ed `*mai|
|00001710| 6c 2a 27 20 62 75 66 66 | 65 72 29 20 6f 72 20 64 |l*' buff|er) or d|
|00001720| 6f 65 73 20 6e 6f 74 20 | 61 70 70 65 61 72 20 74 |oes not |appear t|
|00001730| 6f 20 62 65 20 61 6e 0a | 61 75 74 6f 73 61 76 65 |o be an.|autosave|
|00001740| 20 66 69 6c 65 20 61 74 | 20 61 6c 6c 2e 0a 48 61 | file at| all..Ha|
|00001750| 73 68 65 64 20 66 69 6c | 65 73 20 61 72 65 20 6e |shed fil|es are n|
|00001760| 6f 74 20 75 6e 64 65 72 | 73 74 6f 6f 64 2c 20 73 |ot under|stood, s|
|00001770| 65 65 20 60 61 75 74 6f | 2d 73 61 76 65 2d 68 61 |ee `auto|-save-ha|
|00001780| 73 68 2d 70 27 2e 22 5d | 29 0a 28 62 79 74 65 2d |sh-p'."]|).(byte-|
|00001790| 63 6f 64 65 20 22 c0 c1 | 4d 88 c2 c3 4d 88 c4 c5 |code "..|M...M...|
|000017a0| 4d 88 c6 c7 4d 88 c8 c9 | 4d 87 22 20 5b 61 75 74 |M...M...|M." [aut|
|000017b0| 6f 2d 73 61 76 65 2d 6e | 61 6d 65 2d 69 6e 2d 66 |o-save-n|ame-in-f|
|000017c0| 69 78 65 64 2d 64 69 72 | 65 63 74 6f 72 79 20 23 |ixed-dir|ectory #|
|000017d0| 5b 28 66 69 6c 65 6e 61 | 6d 65 20 26 6f 70 74 69 |[(filena|me &opti|
|000017e0| 6f 6e 61 6c 20 70 72 65 | 66 69 78 29 20 22 08 ae |onal pre|fix) "..|
|000017f0| 81 c1 c2 0b 21 c1 51 1c | 0d ab 93 0e 06 ab 8f 0c |....!.Q.|........|
|00001800| 47 c7 56 ab 89 c8 c9 0b | 21 0e 06 5c 22 aa 89 c8 |G.V.....|!..\"...|
|00001810| 0c 0e 5c 6e ae 82 0e 0b | 5c 22 29 87 22 20 5b 70 |..\n....|\")." [p|
|00001820| 72 65 66 69 78 20 22 23 | 22 20 61 75 74 6f 2d 73 |refix "#|" auto-s|
|00001830| 61 76 65 2d 75 6e 73 6c | 61 73 68 69 66 79 2d 6e |ave-unsl|ashify-n|
|00001840| 61 6d 65 20 66 69 6c 65 | 6e 61 6d 65 20 62 61 73 |ame file|name bas|
|00001850| 65 2d 6e 61 6d 65 20 61 | 75 74 6f 2d 73 61 76 65 |e-name a|uto-save|
|00001860| 2d 68 61 73 68 2d 70 20 | 61 75 74 6f 2d 73 61 76 |-hash-p |auto-sav|
|00001870| 65 2d 68 61 73 68 2d 64 | 69 72 65 63 74 6f 72 79 |e-hash-d|irectory|
|00001880| 20 31 34 20 65 78 70 61 | 6e 64 2d 66 69 6c 65 2d | 14 expa|nd-file-|
|00001890| 6e 61 6d 65 20 61 75 74 | 6f 2d 73 61 76 65 2d 63 |name aut|o-save-c|
|000018a0| 79 63 6c 69 63 2d 68 61 | 73 68 2d 31 34 20 61 75 |yclic-ha|sh-14 au|
|000018b0| 74 6f 2d 73 61 76 65 2d | 64 69 72 65 63 74 6f 72 |to-save-|director|
|000018c0| 79 20 61 75 74 6f 2d 73 | 61 76 65 2d 64 69 72 65 |y auto-s|ave-dire|
|000018d0| 63 74 6f 72 79 2d 66 61 | 6c 6c 62 61 63 6b 5d 20 |ctory-fa|llback] |
|000018e0| 33 5d 20 61 75 74 6f 2d | 73 61 76 65 2d 6e 61 6d |3] auto-|save-nam|
|000018f0| 65 2d 69 6e 2d 73 61 6d | 65 2d 64 69 72 65 63 74 |e-in-sam|e-direct|
|00001900| 6f 72 79 20 23 5b 28 66 | 69 6c 65 6e 61 6d 65 20 |ory #[(f|ilename |
|00001910| 26 6f 70 74 69 6f 6e 61 | 6c 20 70 72 65 66 69 78 |&optiona|l prefix|
|00001920| 29 20 22 c0 09 21 89 1a | ab 87 c3 5c 6e 21 ac 82 |) "..!..|...\n!..|
|00001930| 0c 12 5c 6e 0d ae 81 c6 | c7 09 21 c6 52 29 87 22 |..\n....|..!.R)."|
|00001940| 20 5b 66 69 6c 65 2d 6e | 61 6d 65 2d 64 69 72 65 | [file-n|ame-dire|
|00001950| 63 74 6f 72 79 20 66 69 | 6c 65 6e 61 6d 65 20 64 |ctory fi|lename d|
|00001960| 69 72 65 63 74 6f 72 79 | 20 66 69 6c 65 2d 77 72 |irectory| file-wr|
|00001970| 69 74 61 62 6c 65 2d 70 | 20 61 75 74 6f 2d 73 61 |itable-p| auto-sa|
|00001980| 76 65 2d 64 69 72 65 63 | 74 6f 72 79 2d 66 61 6c |ve-direc|tory-fal|
|00001990| 6c 62 61 63 6b 20 70 72 | 65 66 69 78 20 22 23 22 |lback pr|efix "#"|
|000019a0| 20 66 69 6c 65 2d 6e 61 | 6d 65 2d 6e 6f 6e 64 69 | file-na|me-nondi|
|000019b0| 72 65 63 74 6f 72 79 5d | 20 35 5d 20 61 75 74 6f |rectory]| 5] auto|
|000019c0| 2d 73 61 76 65 2d 75 6e | 73 6c 61 73 68 69 66 79 |-save-un|slashify|
|000019d0| 2d 6e 61 6d 65 20 23 5b | 28 73 29 20 22 c0 19 c2 |-name #[|(s) "...|
|000019e0| c3 0c 09 23 ab a0 0c c0 | 89 94 4f 0c c0 94 c0 95 |...#....|..O.....|
|000019f0| 4f c5 98 ab 83 c6 aa 81 | c7 0c c0 95 c8 4f 51 14 |O.......|.....OQ.|
|00001a00| c0 95 54 11 aa 59 29 0c | 87 22 20 5b 30 20 6c 69 |..T..Y).|." [0 li|
|00001a10| 6d 69 74 20 73 74 72 69 | 6e 67 2d 6d 61 74 63 68 |mit stri|ng-match|
|00001a20| 20 22 5b 2f 5c 5c 5d 22 | 20 73 20 22 2f 22 20 22 | "[/\\]"| s "/" "|
|00001a30| 5c 5c 21 22 20 22 5c 5c | 5c 5c 22 20 6e 69 6c 5d |\\!" "\\|\\" nil]|
|00001a40| 20 35 5d 20 61 75 74 6f | 2d 73 61 76 65 2d 73 6c | 5] auto|-save-sl|
|00001a50| 61 73 68 69 66 79 2d 6e | 61 6d 65 20 23 5b 28 73 |ashify-n|ame #[(s|
|00001a60| 29 20 22 c0 19 c2 c3 0c | 09 23 89 11 ab 9d 0c c5 |) ".....|.#......|
|00001a70| 09 4f 0c 09 54 48 c6 3d | ab 83 c7 aa 81 c8 0c 09 |.O..TH.=|........|
|00001a80| c9 5c 5c c0 4f 51 14 09 | 54 11 aa 5a 29 0c 87 22 |.\\.OQ..|T..Z).."|
|00001a90| 20 5b 6e 69 6c 20 70 6f | 73 20 73 74 72 69 6e 67 | [nil po|s string|
|00001aa0| 2d 6d 61 74 63 68 20 22 | 5c 5c 5c 5c 5b 5c 5c 21 |-match "|\\\\[\\!|
|00001ab0| 5d 22 20 73 20 30 20 33 | 33 20 22 2f 22 20 22 5c |]" s 0 3|3 "/" "\|
|00001ac0| 5c 22 20 32 5d 20 35 5d | 20 61 75 74 6f 2d 73 61 |\" 2] 5]| auto-sa|
|00001ad0| 76 65 2d 63 79 63 6c 69 | 63 2d 68 61 73 68 2d 31 |ve-cycli|c-hash-1|
|00001ae0| 34 20 23 5b 28 73 29 20 | 22 c0 c1 c2 5c 22 c3 1c |4 #[(s) |"...\"..|
|00001af0| 1d c6 c7 0e 08 5c 22 88 | c9 ca 0d c2 48 0d cb 48 |.....\".|....H..H|
|00001b00| 0d cc 48 0d cd 48 0d ce | 48 0d cf 48 0d d0 48 0d |..H..H..|H..H..H.|
|00001b10| d1 48 26 09 89 14 2a 87 | 22 20 5b 6d 61 6b 65 2d |.H&...*.|" [make-|
|00001b20| 73 74 72 69 6e 67 20 38 | 20 30 20 6e 69 6c 20 72 |string 8| 0 nil r|
|00001b30| 65 73 75 6c 74 20 63 72 | 63 20 6d 61 70 63 61 72 |esult cr|c mapcar|
|00001b40| 20 23 5b 28 6e 65 77 29 | 20 22 08 09 c2 48 5c 5c | #[(new)| "...H\\|
|00001b50| 10 09 c2 09 c3 48 49 88 | 09 c3 09 c4 48 08 5c 5c |.....HI.|....H.\\|
|00001b60| 49 88 09 c4 09 c5 48 49 | 88 09 c5 09 c6 48 49 88 |I.....HI|.....HI.|
|00001b70| 09 c6 09 c7 48 08 5c 5c | 49 88 09 c7 09 c8 48 49 |....H.\\|I.....HI|
|00001b80| 88 09 c8 09 c9 48 49 88 | 09 c9 08 49 87 22 20 5b |.....HI.|...I." [|
|00001b90| 6e 65 77 20 63 72 63 20 | 37 20 36 20 35 20 34 20 |new crc |7 6 5 4 |
|00001ba0| 33 20 32 20 31 20 30 5d | 20 34 5d 20 73 20 66 6f |3 2 1 0]| 4] s fo|
|00001bb0| 72 6d 61 74 20 22 25 30 | 32 78 25 30 32 78 25 30 |rmat "%0|2x%02x%0|
|00001bc0| 32 78 25 30 32 78 25 30 | 32 78 25 30 32 78 25 30 |2x%02x%0|2x%02x%0|
|00001bd0| 32 78 22 20 31 20 32 20 | 33 20 34 20 35 20 36 20 |2x" 1 2 |3 4 5 6 |
|00001be0| 37 5d 20 31 32 5d 5d 20 | 32 29 0a 28 66 73 65 74 |7] 12]] |2).(fset|
|00001bf0| 20 27 72 65 63 6f 76 65 | 72 2d 61 6c 6c 2d 66 69 | 'recove|r-all-fi|
|00001c00| 6c 65 73 20 23 5b 6e 69 | 6c 20 22 c0 09 c2 c3 23 |les #[ni|l "....#|
|00001c10| c4 89 c5 89 1e 06 1e 07 | 1e 08 1e 09 1e 5c 6e 09 |........|.....\n.|
|00001c20| 0e 0b 9a ac 8c cc 0e 5c | 6e c0 0e 0b c2 c3 23 5c |.......\|n.....#\|
|00001c30| 22 16 5c 6e 0e 5c 6e 83 | b9 00 0e 5c 6e 40 16 09 |".\n.\n.|...\n@..|
|00001c40| cd 0e 09 21 16 08 0e 5c | 6e 41 16 5c 6e 0e 08 ab |...!...\|nA.\n...|
|00001c50| 94 ce 0e 09 0e 08 5c 22 | ac 8c cf d0 0e 09 5c 22 |......\"|......\"|
|00001c60| 88 d1 d2 21 88 aa 53 0e | 07 54 16 07 d3 90 d4 d5 |...!..S.|.T......|
|00001c70| d6 c4 0e 17 c4 d8 0e 09 | 0e 08 ad 83 0e 08 43 26 |........|......C&|
|00001c80| 08 91 88 d9 da db 0e 08 | ae 81 dc 5c 22 21 ab 2b |........|...\"!.+|
|00001c90| 70 1e 1d 0e 08 ab 87 de | 0e 08 c2 5c 22 aa 83 df |p.......|...\"...|
|00001ca0| e0 21 71 1e 21 c4 1e 5c | 22 e3 20 88 e4 0e 09 c4 |.!q.!..\|". .....|
|00001cb0| 5c 22 88 c4 e5 e6 8f 88 | c4 16 27 0e 06 54 16 06 |\"......|..'..T..|
|00001cc0| cf e8 e9 20 5c 22 88 0e | 1d 71 88 d1 ea 21 88 2b |... \"..|.q...!.+|
|00001cd0| 82 25 00 0e 07 c5 55 ab | 86 cf eb 21 88 aa 92 cf |.%....U.|...!....|
|00001ce0| ec 0e 06 0e 07 0e 06 ea | 55 ab 83 ed aa 81 ee 24 |........|U......$|
|00001cf0| 88 2d ef d3 21 ad 83 f0 | d3 21 87 22 20 5b 64 69 |.-..!...|.!." [di|
|00001d00| 72 65 63 74 6f 72 79 2d | 66 69 6c 65 73 20 61 75 |rectory-|files au|
|00001d10| 74 6f 2d 73 61 76 65 2d | 64 69 72 65 63 74 6f 72 |to-save-|director|
|00001d20| 79 20 74 20 22 5e 23 22 | 20 6e 69 6c 20 30 20 63 |y t "^#"| nil 0 c|
|00001d30| 6f 75 6e 74 20 74 6f 74 | 61 6c 20 66 69 6c 65 20 |ount tot|al file |
|00001d40| 61 66 69 6c 65 20 73 61 | 76 65 66 69 6c 65 73 20 |afile sa|vefiles |
|00001d50| 61 75 74 6f 2d 73 61 76 | 65 2d 64 69 72 65 63 74 |auto-sav|e-direct|
|00001d60| 6f 72 79 2d 66 61 6c 6c | 62 61 63 6b 20 61 70 70 |ory-fall|back app|
|00001d70| 65 6e 64 20 61 75 74 6f | 2d 73 61 76 65 2d 6f 72 |end auto|-save-or|
|00001d80| 69 67 69 6e 61 6c 2d 6e | 61 6d 65 20 66 69 6c 65 |iginal-n|ame file|
|00001d90| 2d 6e 65 77 65 72 2d 74 | 68 61 6e 2d 66 69 6c 65 |-newer-t|han-file|
|00001da0| 2d 70 20 6d 65 73 73 61 | 67 65 20 22 61 75 74 6f |-p messa|ge "auto|
|00001db0| 73 61 76 65 20 66 69 6c | 65 20 5c 22 25 73 5c 22 |save fil|e \"%s\"|
|00001dc0| 20 69 73 20 6e 6f 74 20 | 63 75 72 72 65 6e 74 2e | is not |current.|
|00001dd0| 22 20 73 69 74 2d 66 6f | 72 20 32 20 22 2a 44 69 |" sit-fo|r 2 "*Di|
|00001de0| 72 65 63 74 6f 72 79 2a | 22 20 61 70 70 6c 79 20 |rectory*|" apply |
|00001df0| 63 61 6c 6c 2d 70 72 6f | 63 65 73 73 20 22 6c 73 |call-pro|cess "ls|
|00001e00| 22 20 73 74 61 6e 64 61 | 72 64 2d 6f 75 74 70 75 |" standa|rd-outpu|
|00001e10| 74 20 22 2d 6c 22 20 79 | 65 73 2d 6f 72 2d 6e 6f |t "-l" y|es-or-no|
|00001e20| 2d 70 20 66 6f 72 6d 61 | 74 20 22 52 65 63 6f 76 |-p forma|t "Recov|
|00001e30| 65 72 20 25 73 20 66 72 | 6f 6d 20 61 75 74 6f 20 |er %s fr|om auto |
|00001e40| 73 61 76 65 20 66 69 6c | 65 3f 20 22 20 22 6e 6f |save fil|e? " "no|
|00001e50| 6e 2d 66 69 6c 65 20 62 | 75 66 66 65 72 22 20 6f |n-file b|uffer" o|
|00001e60| 62 75 66 20 66 69 6e 64 | 2d 66 69 6c 65 2d 6e 6f |buf find|-file-no|
|00001e70| 73 65 6c 65 63 74 20 67 | 65 6e 65 72 61 74 65 2d |select g|enerate-|
|00001e80| 6e 65 77 2d 62 75 66 66 | 65 72 20 22 2a 72 65 63 |new-buff|er "*rec|
|00001e90| 6f 76 65 72 65 64 2a 22 | 20 62 75 66 20 62 75 66 |overed*"| buf buf|
|00001ea0| 66 65 72 2d 72 65 61 64 | 2d 6f 6e 6c 79 20 65 72 |fer-read|-only er|
|00001eb0| 61 73 65 2d 62 75 66 66 | 65 72 20 69 6e 73 65 72 |ase-buff|er inser|
|00001ec0| 74 2d 66 69 6c 65 2d 63 | 6f 6e 74 65 6e 74 73 20 |t-file-c|ontents |
|00001ed0| 28 61 66 74 65 72 2d 66 | 69 6e 64 2d 66 69 6c 65 |(after-f|ind-file|
|00001ee0| 20 6e 69 6c 29 20 28 28 | 65 72 72 6f 72 29 29 20 | nil) ((|error)) |
|00001ef0| 62 75 66 66 65 72 2d 61 | 75 74 6f 2d 73 61 76 65 |buffer-a|uto-save|
|00001f00| 2d 66 69 6c 65 2d 6e 61 | 6d 65 20 22 41 75 74 6f |-file-na|me "Auto|
|00001f10| 2d 73 61 76 65 20 6f 66 | 66 20 69 6e 20 62 75 66 |-save of|f in buf|
|00001f20| 66 65 72 20 5c 22 25 73 | 5c 22 20 74 69 6c 6c 20 |fer \"%s|\" till |
|00001f30| 79 6f 75 20 64 6f 20 4d | 2d 78 20 61 75 74 6f 2d |you do M|-x auto-|
|00001f40| 73 61 76 65 2d 6d 6f 64 | 65 2e 22 20 62 75 66 66 |save-mod|e." buff|
|00001f50| 65 72 2d 6e 61 6d 65 20 | 31 20 22 4e 6f 74 68 69 |er-name |1 "Nothi|
|00001f60| 6e 67 20 74 6f 20 72 65 | 63 6f 76 65 72 2e 22 20 |ng to re|cover." |
|00001f70| 22 25 64 2f 25 64 20 66 | 69 6c 65 25 73 20 72 65 |"%d/%d f|ile%s re|
|00001f80| 63 6f 76 65 72 65 64 2e | 22 20 22 22 20 22 73 22 |covered.|" "" "s"|
|00001f90| 20 67 65 74 2d 62 75 66 | 66 65 72 20 6b 69 6c 6c | get-buf|fer kill|
|00001fa0| 2d 62 75 66 66 65 72 5d | 20 31 30 20 22 5c 0a 44 |-buffer]| 10 "\.D|
|00001fb0| 6f 20 72 65 63 6f 76 65 | 72 2d 66 69 6c 65 20 66 |o recove|r-file f|
|00001fc0| 6f 72 20 61 6c 6c 20 61 | 75 74 6f 73 61 76 65 20 |or all a|utosave |
|00001fd0| 66 69 6c 65 73 20 77 68 | 69 63 68 20 61 72 65 20 |files wh|ich are |
|00001fe0| 63 75 72 72 65 6e 74 2e | 0a 4f 6e 6c 79 20 77 6f |current.|.Only wo|
|00001ff0| 72 6b 73 20 69 66 20 79 | 6f 75 20 68 61 76 65 20 |rks if y|ou have |
|00002000| 61 20 6e 6f 6e 2d 6e 69 | 6c 20 60 61 75 74 6f 2d |a non-ni|l `auto-|
|00002010| 73 61 76 65 2d 64 69 72 | 65 63 74 6f 72 79 27 2e |save-dir|ectory'.|
|00002020| 0a 48 61 73 68 65 64 20 | 66 69 6c 65 73 20 28 73 |.Hashed |files (s|
|00002030| 65 65 20 60 61 75 74 6f | 2d 73 61 76 65 2d 68 61 |ee `auto|-save-ha|
|00002040| 73 68 2d 70 27 29 20 61 | 72 65 20 6e 6f 74 20 75 |sh-p') a|re not u|
|00002050| 6e 64 65 72 73 74 6f 6f | 64 2c 20 75 73 65 0a 60 |nderstoo|d, use.`|
|00002060| 72 65 63 6f 76 65 72 2d | 66 69 6c 65 27 20 74 6f |recover-|file' to|
|00002070| 20 72 65 63 6f 76 65 72 | 20 74 68 65 6d 20 69 6e | recover| them in|
|00002080| 64 69 76 69 64 75 61 6c | 6c 79 2e 22 20 6e 69 6c |dividual|ly." nil|
|00002090| 5d 29 0a 28 70 72 6f 76 | 69 64 65 20 27 61 75 74 |]).(prov|ide 'aut|
|000020a0| 6f 2d 73 61 76 65 29 0a | |o-save).| |
+--------+-------------------------+-------------------------+--------+--------+